package seqlist;

/**
 * @author yuisama
 * @date 2022/04/25 19:34
 **/
public class DoubleLinkTest {
    public static void main(String[] args) {
        DoubleLinkedList doubleLinkedList = new DoubleLinkedList();
        doubleLinkedList.addLast(3);
        doubleLinkedList.addLast(3);
        doubleLinkedList.addLast(3);
        doubleLinkedList.addLast(2);
        doubleLinkedList.addLast(3);
        doubleLinkedList.removeAllValue(3);
        System.out.println(doubleLinkedList);
//        doubleLinkedList.addLast(1);
//        doubleLinkedList.addLast(3);
//        doubleLinkedList.addLast(5);
//        doubleLinkedList.add(1,2);
//        doubleLinkedList.add(1,4);
//        // 1->4->2->3->5
//        System.out.println(doubleLinkedList);
//        doubleLinkedList.removeFirst();
//        doubleLinkedList.removeLast();
//        System.out.println(doubleLinkedList);
//        System.out.println("--------------------");
//        doubleLinkedList.removeIndex(1);
//        System.out.println(doubleLinkedList);
    }
}